3.1.59 \(\int \frac {(c x)^m (A+B x)}{a+b x^2} \, dx\) [59]

Optimal. Leaf size=91 \[ \frac {A (c x)^{1+m} \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {b x^2}{a}\right )}{a c (1+m)}+\frac {B (c x)^{2+m} \, _2F_1\left (1,\frac {2+m}{2};\frac {4+m}{2};-\frac {b x^2}{a}\right )}{a c^2 (2+m)} \]

[Out]

A*(c*x)^(1+m)*hypergeom([1, 1/2+1/2*m],[3/2+1/2*m],-b*x^2/a)/a/c/(1+m)+B*(c*x)^(2+m)*hypergeom([1, 1+1/2*m],[2
+1/2*m],-b*x^2/a)/a/c^2/(2+m)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {822, 371} \begin {gather*} \frac {A (c x)^{m+1} \, _2F_1\left (1,\frac {m+1}{2};\frac {m+3}{2};-\frac {b x^2}{a}\right )}{a c (m+1)}+\frac {B (c x)^{m+2} \, _2F_1\left (1,\frac {m+2}{2};\frac {m+4}{2};-\frac {b x^2}{a}\right )}{a c^2 (m+2)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((c*x)^m*(A + B*x))/(a + b*x^2),x]

[Out]

(A*(c*x)^(1 + m)*Hypergeometric2F1[1, (1 + m)/2, (3 + m)/2, -((b*x^2)/a)])/(a*c*(1 + m)) + (B*(c*x)^(2 + m)*Hy
pergeometric2F1[1, (2 + m)/2, (4 + m)/2, -((b*x^2)/a)])/(a*c^2*(2 + m))

Rule 371

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*((c*x)^(m + 1)/(c*(m + 1)))*Hyperg
eometric2F1[-p, (m + 1)/n, (m + 1)/n + 1, (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 822

Int[((e_.)*(x_))^(m_)*((f_) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Dist[f, Int[(e*x)^m*(a + c*
x^2)^p, x], x] + Dist[g/e, Int[(e*x)^(m + 1)*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, e, f, g, p}, x] &&  !Ration
alQ[m] &&  !IGtQ[p, 0]

Rubi steps

\begin {align*} \int \frac {(c x)^m (A+B x)}{a+b x^2} \, dx &=A \int \frac {(c x)^m}{a+b x^2} \, dx+\frac {B \int \frac {(c x)^{1+m}}{a+b x^2} \, dx}{c}\\ &=\frac {A (c x)^{1+m} \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {b x^2}{a}\right )}{a c (1+m)}+\frac {B (c x)^{2+m} \, _2F_1\left (1,\frac {2+m}{2};\frac {4+m}{2};-\frac {b x^2}{a}\right )}{a c^2 (2+m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 82, normalized size = 0.90 \begin {gather*} \frac {x (c x)^m \left (B (1+m) x \, _2F_1\left (1,1+\frac {m}{2};2+\frac {m}{2};-\frac {b x^2}{a}\right )+A (2+m) \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {b x^2}{a}\right )\right )}{a (1+m) (2+m)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((c*x)^m*(A + B*x))/(a + b*x^2),x]

[Out]

(x*(c*x)^m*(B*(1 + m)*x*Hypergeometric2F1[1, 1 + m/2, 2 + m/2, -((b*x^2)/a)] + A*(2 + m)*Hypergeometric2F1[1,
(1 + m)/2, (3 + m)/2, -((b*x^2)/a)]))/(a*(1 + m)*(2 + m))

________________________________________________________________________________________

Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (c x \right )^{m} \left (B x +A \right )}{b \,x^{2}+a}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x)^m*(B*x+A)/(b*x^2+a),x)

[Out]

int((c*x)^m*(B*x+A)/(b*x^2+a),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x)^m*(B*x+A)/(b*x^2+a),x, algorithm="maxima")

[Out]

integrate((B*x + A)*(c*x)^m/(b*x^2 + a), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x)^m*(B*x+A)/(b*x^2+a),x, algorithm="fricas")

[Out]

integral((B*x + A)*(c*x)^m/(b*x^2 + a), x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 1.83, size = 192, normalized size = 2.11 \begin {gather*} \frac {A c^{m} m x x^{m} \Phi \left (\frac {b x^{2} e^{i \pi }}{a}, 1, \frac {m}{2} + \frac {1}{2}\right ) \Gamma \left (\frac {m}{2} + \frac {1}{2}\right )}{4 a \Gamma \left (\frac {m}{2} + \frac {3}{2}\right )} + \frac {A c^{m} x x^{m} \Phi \left (\frac {b x^{2} e^{i \pi }}{a}, 1, \frac {m}{2} + \frac {1}{2}\right ) \Gamma \left (\frac {m}{2} + \frac {1}{2}\right )}{4 a \Gamma \left (\frac {m}{2} + \frac {3}{2}\right )} + \frac {B c^{m} m x^{2} x^{m} \Phi \left (\frac {b x^{2} e^{i \pi }}{a}, 1, \frac {m}{2} + 1\right ) \Gamma \left (\frac {m}{2} + 1\right )}{4 a \Gamma \left (\frac {m}{2} + 2\right )} + \frac {B c^{m} x^{2} x^{m} \Phi \left (\frac {b x^{2} e^{i \pi }}{a}, 1, \frac {m}{2} + 1\right ) \Gamma \left (\frac {m}{2} + 1\right )}{2 a \Gamma \left (\frac {m}{2} + 2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x)**m*(B*x+A)/(b*x**2+a),x)

[Out]

A*c**m*m*x*x**m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 1/2)*gamma(m/2 + 1/2)/(4*a*gamma(m/2 + 3/2)) + A*c
**m*x*x**m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 1/2)*gamma(m/2 + 1/2)/(4*a*gamma(m/2 + 3/2)) + B*c**m*m
*x**2*x**m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 1)*gamma(m/2 + 1)/(4*a*gamma(m/2 + 2)) + B*c**m*x**2*x*
*m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 1)*gamma(m/2 + 1)/(2*a*gamma(m/2 + 2))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x)^m*(B*x+A)/(b*x^2+a),x, algorithm="giac")

[Out]

integrate((B*x + A)*(c*x)^m/(b*x^2 + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (c\,x\right )}^m\,\left (A+B\,x\right )}{b\,x^2+a} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((c*x)^m*(A + B*x))/(a + b*x^2),x)

[Out]

int(((c*x)^m*(A + B*x))/(a + b*x^2), x)

________________________________________________________________________________________